<?php
class Zend_View_Helper_LoggedAs extends Zend_View_Helper_Abstract{
	public function loggedAs(){
		$auth = Zend_Auth::getInstance();
		if($auth->hasIdentity()){
			$user = $auth->getIdentity();
			return 'Welcome, '.ucfirst($this->view->escape($user->pseudo)).' | Role : '.$this->view->escape($user->role);
		}
	}
}